package com.cloudauth.authclienta.service;


import com.cloudauth.core.intercepter.FeignOAuth2RequestInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


//TODO 进行服务调用时请务必指定 configuration = FeignOAuth2RequestInterceptor.class
@FeignClient(name = "auth-cloud-client-b",configuration = FeignOAuth2RequestInterceptor.class)
public interface AuthRequestBService {

    @GetMapping(path = "/test-b")
    public String testB(@RequestParam(name = "str") String str);
}
